<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
       // function fn(){
         //   let num=34;
           // document.write(num)
        //}
        //fn()

        //function f1(){
          //  let num=123;
            //function f2(){
              //  document.write(num)
            //}
            //f2()
        //}
        //let num=233
        //f1()

        let a=1
        function fn1(){
            let a=2
            let b='22'
            fn2()

            function fn2(){

                let a=3
                fn3()
                function fn3(){

                    let a=4
                    document.write(a)
                    document.write(b)
                }
            }
        }
        fn1()


    </script>
</body>
</html>